package com.wtwd.device.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * @author mjy
 * @date 2021/08/03
 * @description
 */
public class RolePermissionVo extends TreeVO implements Serializable {
    private static final long serialVersionUID = 2L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父ID
     */
    private Integer pid;

    /**
     * 名称
     */
    private String name;

    /**
     * 路径
     */
    private String perUrl;

    /**
     * 菜单类型(1:一级菜单; 2:子菜单;10:按钮权限)
     */
    private String menuType;

    /**
     * 菜单权限编码
     */
    private String perCode;
    /**
     * 是否有权限
     */
    private boolean hasPermission;

    private String checkRole;

    public String getCheckRole() {
        return checkRole;
    }

    public void setCheckRole(String checkRole) {
        this.checkRole = checkRole;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Integer getPid() {
        return pid;
    }

    @Override
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public String getPerUrl() {
        return perUrl;
    }

    public void setPerUrl(String perUrl) {
        this.perUrl = perUrl;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public String getPerCode() {
        return perCode;
    }

    public void setPerCode(String perCode) {
        this.perCode = perCode;
    }

    public boolean getHasPermission() {
        return hasPermission;
    }

    public void setHasPermission(boolean hasPermission) {
        this.hasPermission = hasPermission;
    }




    @Override
    public String toString() {
        return "RolePermissionVo{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", perUrl='" + perUrl + '\'' +
                ", menuType='" + menuType + '\'' +
                ", perCode='" + perCode + '\'' +
                ", hasPermission=" + hasPermission +
                ", check_role='" + checkRole + '\'' +
                '}';
    }
}
